The fix for CVE-2014-8989 added a new member to struct user_namespace.
This is always allocated, and the new member is always used, in
non-modular code. Move it to the end of the structure and hide it
from genksyms.
Also hide the new #include in kernel/groups.c.
Gbp-Pq: Topic debian
Gbp-Pq: Name userns-fix-abi-change-in-3.16.7-ckt4.patch
kuid_t owner;
kgid_t group;
unsigned int proc_inum;
- unsigned long flags;
/* Register of per-UID persistent keyrings for this namespace */
#ifdef CONFIG_PERSISTENT_KEYRINGS
struct key *persistent_keyring_register;
struct rw_semaphore persistent_keyring_register_sem;
#endif
+
+#ifndef __GENKSYMS__
+ unsigned long flags;
+#endif
};
extern struct user_namespace init_user_ns;
#include <linux/slab.h>
#include <linux/security.h>
#include <linux/syscalls.h>
+#ifndef __GENKSYMS__
#include <linux/user_namespace.h>
+#endif
#include <asm/uaccess.h>
/* init to 2 - one for init_task, one to ensure it is never freed */